package com.dx.gate.rest;

import com.dx.chat.kafka.config.service.IKafkaProducerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * todo
 *
 * @author xufeng
 * @since 14.04.2023
 */
@RestController
public class Test {
    @Autowired
    private IKafkaProducerService iKafkaProducerService;

    @GetMapping("/hello")
    public void hello() {
        iKafkaProducerService.sendMessage("s2s_chat", "hello 舒服的舒服发送发送");
    }

}
